<?php
class app
{
	public $G;
	public function __construct(&$G){
		$this->G = $G;
		$this->routes = $this->G->loadclass('routes');
		$this->dbpdo = $this->G->loadclass('dbpdo');
		$this->tpl = $this->G->loadclass('tpl');
		$this->files = $this->G->loadclass('files');
		$this->article = $this->G->loadclass('article');
		$this->inlink = $this->G->loadclass('inlink','links');
		$this->friendlink = $this->G->loadclass('friendlink','links');				
		if(!file_exists(str_replace('\\', '/', dirname(__FILE__)).'/install.lock')){
			echo '此模块暂未安装，请安装后重试';
			exit;
		}
		$this->tpl->assign('navmenu',$this->G->loadclass('navmenu')->getAllByType('admin'));
	}
}
?>